@import './sass/variable';
$firstImgH: 125rem / $baseFontSize;
$headH: 60rem / $baseFontSize;

.safety_loop
{

    padding: 0 $emptyWidth;

    .safety_loop_p 
    {
        border-top: 1px dashed #aaa;
        margin-bottom: 10rem / $baseFontSize;        
    }
    .safety_loop_li
    {
        position: relative;
        display: block;

        margin-top: 15rem / $baseFontSize;

        background: #fff;
        text-align: center;
        border:1px solid #dfe4de;
        @include shadow(0 0 2px #aaa);
        & > img {
            width:100%;
            border: solid 1px #fff;
            box-sizing: border-box;
            box-shadow: 3px 3px 4px #aaa;
            min-height: $firstImgH;
        }
        //border-top: 2px solid #333;
        .safety_loop_div
        {
            height: $firstImgH;
            overflow: hidden;
            & > img
            {
                width: 100%;
                min-height: $firstImgH;
            }
        }
        .img_wrap{
        	position:relative;
        }
        .iflike{
            position: absolute;
            top:-23rem / $baseFontSize;
            right:15rem / $baseFontSize;
            width:25rem / $baseFontSize;
            height: 23rem / $baseFontSize;

        }
        .ion_heart_red{
        	background:url('../img/heart_red.png') no-repeat;
        	background-size:100%;
        }
        .ion_heart_default{
        	background:url('../img/heart_default.png') no-repeat;
        	background-size:100%;
        }
        .head
        {
            position: absolute;
            top: -$headH - 0.5rem;
            left: 50%;

            width: $headH;
            height: $headH;
            margin-left: - $headH / 2;

            border: 2px solid #b1b1b1;
            border-radius: 50%;
            border-radius: 50%;
            & > img
            {
                width: 100%;
                height: 100%;

                border-radius: 50%;
            }
        }
        h3
        {
            margin-top: $headH / 2;

            text-align: center;

            @include bigListTit;
        }
        .author
        {
            font-size: 14rem / $baseFontSize;
            line-height: 30rem / $baseFontSize;

            position: relative;

            text-align: center;

            color: #666;
            &:after
            {
                position: absolute;
                bottom: 0;
                left: 50%;

                width: 30rem / $baseFontSize;
                margin-left: -15rem / $baseFontSize;

                content: '';

                border: 1rem / $baseFontSize solid $priGreen;
            }
        }
        .foot
        {
            margin-top: 5rem / $baseFontSize;
            padding: 10rem / $baseFontSize $emptyWidth;

            text-align: center;

            color: #999;
            .ion,
            .icon_castrol
            {
                margin-right: 5rem / $baseFontSize;
            }
        }
        .time
        {
            position: absolute;
            left:$emptyWidth;
        }
        .classify
        {
            position: absolute;
            right:$emptyWidth;
        }
    }
}
.safety_loop_detail{
    .safety_loop{
        padding: 0;

    }
    .author{
        text-align:center;
        font-weight:normal;

    }

    .article_con{
        color: $mainColor;
        //line-height:180%;

        img{
            width:100%;
            margin-bottom:10rem / $baseFontSize;
        }



        .con{
            $iconW:12rem / $baseFontSize;

            background:#fff;
            padding-bottom: 10rem / $baseFontSize;

            h4{
                padding:10rem / $baseFontSize $emptyWidth 0;
                font-size: 14rem / $baseFontSize;
                color: $mainColor;
            }
            & > textarea {
                color:#666;
                font-size: 14rem / $baseFontSize;
                width: 100%;
                border: none;
                background:#fff;
                padding:$emptyWidth;
                box-sizing: border-box;
                resize:none;
            }
            &>p{
                //padding-left:$emptyWidth + $iconW + 10rem / $baseFontSize !important;
                color:#666;
                font-size: 14rem / $baseFontSize;
            }
            &>p,h5{
                background:#fff;
                padding:$emptyWidth;
                padding-left:$emptyWidth + $iconW + 10rem / $baseFontSize;
            }
            h5{
                font-size: 12rem / $baseFontSize;
            }
            h5 + p{
                padding:0 $emptyWidth 5rem / $baseFontSize $emptyWidth + $iconW + 10rem / $baseFontSize;
                font-size: 13rem / $baseFontSize;
            }
            h5 + textarea{
                padding:0 $emptyWidth 5rem / $baseFontSize $emptyWidth + $iconW + 10rem / $baseFontSize;
                font-size: 13rem / $baseFontSize;
            }
            p + p{
                padding-top:0;
            }
        }
    }
}
.alert_list{
    p{
        padding-left: 5rem / $baseFontSize!important;
    }
    .icon_disk,.ion{
         margin-right: 2rem / $baseFontSize!important;
    }
    i + span{
        margin-right: 18rem / $baseFontSize;
        font-size: 13rem / $baseFontSize;
    }
}
.alert_detail{
    $innerColor:#00a54f;
    $outerColor:#006634;
    .top{
        display:block;
        position: relative;
        height: 200rem / $baseFontSize;
        background:darken($innerColor,10%);
        background: -webkit-radial-gradient(50% 55%, closest-side,$innerColor,$outerColor); /* Safari 5.1 - 6.0 */
        background: -o-radial-gradient(50% 55%, closest-side,$innerColor,$outerColor); /* Opera 11.6 - 12.0 */
        background: -moz-radial-gradient(50% 55%, closest-side,$innerColor,$outerColor); /* Firefox 3.6 - 15 */
        background: radial-gradient(50% 55%, closest-side,$innerColor,$outerColor);
        background-image: url(../img/alert_top_bg.png);
        background-position: center;
        background-size: cover;

        .num{
            position: absolute;
            left:0;
            right: 0;
            top:145rem / $baseFontSize;
            color:#fff;
            text-align: center;
            text-decoration: underline;
            font-size: 16rem / $baseFontSize;


        }
    }
    .alert_con_one{
        background:#fff;
        padding-bottom: 10rem / $baseFontSize;

        h3{
            font-size: 16rem / $baseFontSize;
            padding:15rem / $baseFontSize $emptyWidth;
            border-bottom: 1px solid $borColor;
            //margin-bottom: 10rem / $baseFontSize;
        }
        p{
            padding:5rem / $baseFontSize $emptyWidth;
        }


    }
    .alert_con{
        .con{
            background:$bgBody;
            margin-top: 10rem / $baseFontSize;
             padding-bottom: 0;
            @include shadow(0 0 3px #dfe4de);

            h4{
                background: #fff;
                border-bottom: 1px solid $borColor;
                padding:10rem / $baseFontSize $emptyWidth;
                font-size: 14rem / $baseFontSize;
                color: $mainColor;
            }
            &>p{
                padding:$emptyWidth;
                color:#666;
                font-size: 14rem / $baseFontSize;
            }
        }
    }

}
